﻿
namespace SprayProcessSystem.Model
{
    public static class Constants
    {
        public enum NavigationType
        {
            [EnumDescription("生产看板")]
            ProductionBoard,
            [EnumDescription("产线总控")]
            TotalControl,
            [EnumDescription("配方管理")]
            RecipeManage,
           
            [EnumDescription("图表管理")]
            ChartManage,
            [EnumDescription("报表管理")]
            ReportManage,
            [EnumDescription("日志管理")]
            LogManage,

            [EnumDescription("用户管理")]
            UserManage,
            [EnumDescription("系统参数")]
            Settings,
        }

        public enum LogLevelEnum
        {
            [EnumDescription("信息")]
            Info,
            [EnumDescription("警告")]
            Warn,
            [EnumDescription("错误")]
            Error,
            [EnumDescription("调试")]
            Debug,
        }

        public enum RoleEnum
        {
            [EnumDescription("开发者")]
            Developer,
            [EnumDescription("管理员")]
            Admin,
            [EnumDescription("工程师")]
            Engineer,
            [EnumDescription("操作员")]
            Operator,
            [EnumDescription("访客")]
            Visitor
        }

        public enum Result
        {
            [EnumDescription("成功")]
            Success,
            [EnumDescription("失败")]
            Fail
        }

        public static readonly Dictionary<MenuItem, List<MenuItem>> MenuItemDict = new Dictionary<MenuItem, List<MenuItem>>()
        {
            {
                new MenuItem
                {
                    Text = "生产看板",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><g fill-rule=""evenodd""><path d=""m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z""/><path d=""M10.586 4a2 2 0 0 1 2.701-.117l.127.117l3 3H19a2 2 0 0 1 1.995 1.85L21 9v10a2 2 0 0 1-1.85 1.994L19 21H5a2 2 0 0 1-1.995-1.85L3 19V9a2 2 0 0 1 1.85-1.995L5 7h2.586zM10 15H8a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2m4-4H8a1 1 0 0 0-.117 1.993L8 13h6a1 1 0 0 0 .117-1.993zm-2-5.586L10.414 7h3.172z""/></g></svg>"
                },
                new List<MenuItem>()
            },
            {
                new MenuItem
                {
                    Text = "产线总控",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""2em"" height=""2em"" viewBox=""0 0 24 24""><path d=""M5.475 21q-.625 0-1.062-.437T3.975 19.5t.438-1.062T5.475 18h1.6l-2.55-8.35q-.675-.375-1.112-1.1T2.975 7q0-1.25.875-2.125T5.975 4q.975 0 1.738.563T8.775 6h3.2V5q0-.425.288-.712T12.975 4q.225 0 .438.1t.362.3l1.7-1.6q.225-.225.538-.288t.612.088l3.9 1.8q.3.15.413.438t-.013.562q-.15.3-.437.388t-.563-.038l-3.6-1.65l-2.35 2.2v1.4l2.35 2.15l3.6-1.65q.275-.125.575-.025t.425.375q.15.3.025.575t-.425.425l-3.9 1.85q-.3.15-.612.087t-.538-.287l-1.7-1.6q-.15.15-.362.275t-.438.125q-.425 0-.712-.287T11.975 9V8h-3.2q-.075.2-.162.375t-.238.375l5 9.25h2.1q.625 0 1.063.438t.437 1.062t-.437 1.063t-1.063.437zm.5-13q.425 0 .713-.288T6.975 7t-.287-.712T5.975 6t-.712.288T4.975 7t.288.713t.712.287""/></svg>"
                },

                new List<MenuItem>()
            },
            {
                new MenuItem
                {
                    Text = "配方管理",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path d=""M10.507 14.142a1.35 1.35 0 1 0 1.35 1.35a1.35 1.35 0 0 0-1.35-1.35""/><path d=""M14 2.01H6a1.997 1.997 0 0 0-1.99 2l-.01 16a1.997 1.997 0 0 0 1.99 2H18a2.006 2.006 0 0 0 2-2v-12Zm.863 14.958l-.9 1.557a.236.236 0 0 1-.279.099l-1.125-.45a3.3 3.3 0 0 1-.756.44l-.17 1.189a.23.23 0 0 1-.226.189h-1.8a.224.224 0 0 1-.225-.19l-.17-1.187a3 3 0 0 1-.766-.441l-1.116.45a.23.23 0 0 1-.279-.1l-.9-1.556a.234.234 0 0 1 .054-.288l.954-.747a3.6 3.6 0 0 1 0-.882l-.954-.747a.223.223 0 0 1-.054-.288l.9-1.557a.236.236 0 0 1 .28-.1l1.115.45a3.6 3.6 0 0 1 .765-.44l.171-1.188a.23.23 0 0 1 .225-.19h1.8a.215.215 0 0 1 .216.19l.171 1.188a3 3 0 0 1 .765.44l1.116-.45a.23.23 0 0 1 .28.1l.9 1.557a.234.234 0 0 1-.055.288l-.954.747a2.4 2.4 0 0 1 .036.44a4 4 0 0 1-.036.442l.963.747a.234.234 0 0 1 .054.288M13 9.01v-5.5l5.5 5.5Z""/></svg>"
                },
                new List<MenuItem>()
            },
            {
                new MenuItem
                {
                    Text = "图表管理",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path d=""M4 2v18h18v2H2V2zm17 2.086V18.21H6v-6.152l6.59-5.99l2.967 3.461z""/></svg>"
                },
                new List<MenuItem>()
            },
            {
                new MenuItem
                {
                    Text = "报表管理",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path  d=""M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m1 18h2v-6H7zm4 0h2v-8h-2zm4 0h2v-4h-2z""/></svg>"
                },
                new List<MenuItem>()
            },
            {
                new MenuItem
                {
                    Text = "日志管理",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path d=""M12 2v6a2 2 0 0 0 2 2h6v10a2 2 0 0 1-2 2h-6.81a6.5 6.5 0 0 0 1.734-3.5h2.826a.75.75 0 0 0 0-1.5h-2.769a6.5 6.5 0 0 0-.22-1.25h2.989a.75.75 0 0 0 0-1.5h-3.62a6.5 6.5 0 0 0-.94-1.25h4.56a.75.75 0 0 0 0-1.5H9.004A6.5 6.5 0 0 0 6.5 11a6.5 6.5 0 0 0-2.5.498V4a2 2 0 0 1 2-2zm1.5.5V8a.5.5 0 0 0 .5.5h5.5zm-1.5 15a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0M6.5 14a.5.5 0 0 1 .5.5V17h2a.5.5 0 0 1 0 1H6.5a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5""/></svg>"
                },

                new List<MenuItem>()
            },
            {
                new MenuItem
                {
                    Text = "用户管理",
                    IconSvg =@"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path d=""M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4""/></svg>"
                },
                new List<MenuItem>()
                //new List<MenuItem>
                //{
                //    new MenuItem { Text = "用户配置", IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path d=""M10 4a4 4 0 0 0-4 4a4 4 0 0 0 4 4a4 4 0 0 0 4-4a4 4 0 0 0-4-4m7 8a.26.26 0 0 0-.26.21l-.19 1.32c-.3.13-.59.29-.85.47l-1.24-.5c-.11 0-.24 0-.31.13l-1 1.73c-.06.11-.04.24.06.32l1.06.82a4.2 4.2 0 0 0 0 1l-1.06.82a.26.26 0 0 0-.06.32l1 1.73c.06.13.19.13.31.13l1.24-.5c.26.18.54.35.85.47l.19 1.32c.02.12.12.21.26.21h2c.11 0 .22-.09.24-.21l.19-1.32c.3-.13.57-.29.84-.47l1.23.5c.13 0 .26 0 .33-.13l1-1.73a.26.26 0 0 0-.06-.32l-1.07-.82c.02-.17.04-.33.04-.5s-.01-.33-.04-.5l1.06-.82a.26.26 0 0 0 .06-.32l-1-1.73c-.06-.13-.19-.13-.32-.13l-1.23.5c-.27-.18-.54-.35-.85-.47l-.19-1.32A.236.236 0 0 0 19 12zm-7 2c-4.42 0-8 1.79-8 4v2h9.68a7 7 0 0 1-.68-3a7 7 0 0 1 .64-2.91c-.53-.06-1.08-.09-1.64-.09m8 1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.84 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5""/></svg>" },
                //    new MenuItem { Text = "权限配置", IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 24 24""><path d=""M6 8c0-2.21 1.79-4 4-4s4 1.79 4 4s-1.79 4-4 4s-4-1.79-4-4m6 10.2c0-.96.5-1.86 1.2-2.46v-.24c0-.39.07-.76.18-1.12c-1.03-.24-2.17-.38-3.38-.38c-4.42 0-8 1.79-8 4v2h10zm10 .1v3.5c0 .6-.6 1.2-1.3 1.2h-5.5c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2v-1.5c0-1.4 1.4-2.5 2.8-2.5s2.8 1.1 2.8 2.5V17c.6 0 1.2.6 1.2 1.3m-2.5-2.8c0-.8-.7-1.3-1.5-1.3s-1.5.5-1.5 1.3V17h3z""/></svg>" },
                //}
            },
            {
                new MenuItem
                {
                    Text = "系统参数",
                    IconSvg = @"<svg xmlns=""http://www.w3.org/2000/svg"" width=""200"" height=""200"" viewBox=""0 0 28 28""><path d=""M16.693 2.311A13 13 0 0 0 14.013 2q-1.384.016-2.704.311a.92.92 0 0 0-.716.8l-.209 1.877a1.707 1.707 0 0 1-2.371 1.376l-1.72-.757a.92.92 0 0 0-1.043.214a12.06 12.06 0 0 0-2.709 4.667a.92.92 0 0 0 .334 1.017l1.527 1.125a1.7 1.7 0 0 1 0 2.74l-1.527 1.128a.92.92 0 0 0-.334 1.016a12.1 12.1 0 0 0 2.707 4.672a.92.92 0 0 0 1.043.215l1.728-.759a1.7 1.7 0 0 1 1.526.086c.466.27.777.745.838 1.281l.208 1.877a.92.92 0 0 0 .702.796a11.7 11.7 0 0 0 5.413 0a.92.92 0 0 0 .702-.796l.208-1.88a1.693 1.693 0 0 1 2.366-1.37l1.727.759a.92.92 0 0 0 1.043-.215a12.1 12.1 0 0 0 2.707-4.667a.92.92 0 0 0-.334-1.017L23.6 15.37a1.7 1.7 0 0 1-.001-2.74l1.525-1.127a.92.92 0 0 0 .333-1.016a12.06 12.06 0 0 0-2.708-4.667a.92.92 0 0 0-1.043-.214l-1.72.757a1.7 1.7 0 0 1-.68.144a1.7 1.7 0 0 1-1.688-1.518l-.21-1.879a.92.92 0 0 0-.714-.799M14 18a4 4 0 1 1 0-8a4 4 0 0 1 0 8""/></svg>"
                },
                new List<MenuItem>()
            },
        };

    }
}
